package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2018-01-09
 */
@TableName("t_bill_weixin")
public class BillWeixin extends Model<BillWeixin> {

	private static final long	serialVersionUID	= 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long				id;
	@TableField("bill_detail_id")
	private String				billDetailId;
	/**
	 * 家长付款时间
	 */
	@TableField("pay_time")
	private Date				payTime;
	/**
	 * 微信订单号
	 */
	@TableField("weixin_transaction_id")
	private String				weixinTransactionId;
	/**
	 * 用户openid
	 */
	private String				openid;
	/**
	 * 用户学校商户号
	 */
	private String				subMchId;
	/**
	 * 订单结束时间
	 */
	private Date				billEndTime;
	/**
	 * 订单状态
	 */
	private Integer				billStatus;
	/**
	 * 创建时间
	 */
	private Date				createTime;
	/**
	 * 用户学校商户号
	 */
	private String				comment;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public String getBillDetailId() {

		return billDetailId;
	}

	public void setBillDetailId(String billDetailId) {

		this.billDetailId = billDetailId;
	}

	public Date getPayTime() {

		return payTime;
	}

	public void setPayTime(Date payTime) {

		this.payTime = payTime;
	}

	public String getWeixinTransactionId() {

		return weixinTransactionId;
	}

	public void setWeixinTransactionId(String weixinTransactionId) {

		this.weixinTransactionId = weixinTransactionId;
	}

	public String getOpenid() {

		return openid;
	}

	public void setOpenid(String openid) {

		this.openid = openid;
	}

	@Override
	protected Serializable pkVal() {

		return this.id;
	}

	public Date getBillEndTime() {

		return billEndTime;
	}

	public void setBillEndTime(Date billEndTime) {

		this.billEndTime = billEndTime;
	}

	public Integer getBillStatus() {

		return billStatus;
	}

	public void setBillStatus(Integer billStatus) {

		this.billStatus = billStatus;
	}

	public Date getCreateTime() {

		return createTime;
	}

	public void setCreateTime(Date createTime) {

		this.createTime = createTime;
	}

	public String getSubMchId() {

		return subMchId;
	}

	public void setSubMchId(String subMchId) {

		this.subMchId = subMchId;
	}

	public String getComment() {

		return comment;
	}

	public void setComment(String comment) {

		this.comment = comment;
	}

	@Override
	public String toString() {

		return "BillWeixin{" +
				"id=" + id +
				", billDetailId=" + billDetailId +
				", payTime=" + payTime +
				", weixinTransactionId=" + weixinTransactionId +
				", openid=" + openid +
				"}";
	}
}
